<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>转换调试输出的开/关</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ref.memcache.html">« Memcache 函数</a></li>
      <li style="float: right;"><a href="book.memcached.html">Memcached »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.memcache.html">Memcache 函数</a></li>
    <li>转换调试输出的开/关</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.memcache-debug" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">memcache_debug</h1>
  <p class="verinfo">(PECL memcache &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">memcache_debug</span> &mdash; <span class="dc-title">转换调试输出的开/关</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.memcache-debug-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>memcache_debug</strong></span>(<span class="methodparam"><span class="type">bool</span> <code class="parameter">$on_off</code></span>): <span class="type">bool</span></div>


  <p class="para rdfs-comment">
   <span class="function"><strong>memcache_debug()</strong></span>在参数
   <code class="parameter">on_off</code>设置为<strong><code>true</code></strong>时打开调试输出，在值为
   <strong><code>false</code></strong>时关闭调试输出。
   <blockquote class="note"><p><strong class="note">注意</strong>: 
    <p class="para">
     <span class="function"><strong>memcache_debug()</strong></span>仅仅在PHP以--enable-debug方式编译时可以访问，并且
     总是返回<strong><code>true</code></strong>，其他情况下此函数不会产生任何影响并总是返回<strong><code>false</code></strong>。
    </p>
   </p></blockquote>
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.memcache-debug-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">on_off</code></dt>

     <dd>

      <p class="para">
       <strong><code>true</code></strong>表明打开调试输出。
       <strong><code>false</code></strong>表明关闭调试输出。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.memcache-debug-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   当PHP以--enalbe-debug选项构建时返回<strong><code>true</code></strong>其他情况下返回<strong><code>false</code></strong>。
  </p>
 </div>


</div></div></div></body></html>